package edu.hunau.cxb19.oop.class08.inner;

import org.junit.Test;

/**
 * 局部类内部
 * 
 * @author hb
 *
 *         2020-03-04 16:24:56
 */
public class LocalInnerClass {
	@Test
 	public  void method() {
 		 int b=100;
 		
		// 声明局部内部类,不能提供访问修饰符
	 	class Inner {
			private int a = 100;
			//不能出现静态成员
			//private static String datas = "static field...";

			public void call() {
				System.out.println("局部内部类#call..."+b);
			}
		}
	 	
	 

		Inner inner = new Inner();
		inner.call();

	}
 }
